package com.boyon.system.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.boyon.common.request.RequestEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * ClassName: Coding <br/>
 * Function: 编码规则表关联类. <br/>
 * date: 2018年3月13日 上午10:50:57 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 */
@Entity
@Table(name = "sys_coding", catalog = "boyon_system")
@Data
@EqualsAndHashCode(callSuper = false)
public class Coding extends RequestEntity implements java.io.Serializable {

	/**
	 * serialVersionUID:
	 * 
	 * @since JDK 1.8
	 */
	private static final long serialVersionUID = 4073659245078136713L;
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "coding_id", unique = true, nullable = false)
	private Long codingId;
	@Column(name = "coding_name", length = 32)
	private String codingName;
	@Column(name = "total_length")
	private Integer totalLength;
	@Column(name = "preffix_type")
	private Integer preffixType;
	@Column(name = "preffix", length = 128)
	private String preffix;
	@Column(name = "style", length = 32)
	private String style;
	@Column(name = "coding_type")
	private Integer codingType;
	@Column(name = "status")
	private Integer status;
	@Column(name = "coding_key", length = 16)
	private String codingKey;
}